//
//  QZAnnotationView.h
//  map
//
//  Created by 000 on 16/8/1.
//  Copyright © 2016年 faner. All rights reserved.
//

#import <MapKit/MapKit.h>
@class QZAnnotationView;
@class QZAnnotation;

@protocol QZAnnotationViewDelegate <NSObject>

- (void)annotationView:(QZAnnotationView*)annotationView downBtnClickWith:(QZAnnotation *)annotation;
- (void)annotationView:(QZAnnotationView *)annotationView leftBtnClickWith:(QZAnnotation *)annotation;
- (void)annotationView:(QZAnnotationView *)annotationView rightBtnClickWith:(QZAnnotation *)annotation;

@end

@interface QZAnnotationView : MKAnnotationView

@property (nonatomic, assign) int i;//哪个大头针
@property (nonatomic, assign) NSString *string; //判断是哪一个大头针

@property (nonatomic, assign) NSString *imageStr;//左侧图片

@property (nonatomic, strong) UIButton *leftButton;//气泡的左侧按钮
@property (nonatomic, strong) UIButton *rightButton; //气泡右侧的按钮
@property (nonatomic, strong) UIButton *downBtn;//气泡下方按钮


@property (nonatomic, copy) NSString *string2;//大头针图片名

@property (nonatomic, weak) id<QZAnnotationViewDelegate> delegate;

+ (QZAnnotationView *)getQZAnnotationViewWithMapView:(MKMapView *)mapView andAnnotation:(id<MKAnnotation>)annotation;

@end
